package com.ruoyi.project.business.controlcenter.iot.mqtt;

public class TopicUtil {
    /**
     * 网关消费消息 topic
     * @param tenantId
     * @return
     */
    public static String genGatewaySubTopic (Long tenantId) {
        return "gateway_sub/" + tenantId;
    }

    /**
     * 网关发布消息 topic
     * @param tenantId
     * @return
     */
    public static String genGatewayPubTopic (Long tenantId) {
        return "gateway_pub/" + tenantId;
    }
}
